from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import JSON, or_, and_

db = SQLAlchemy()

#
# def init_db(flask_app):
#     flask_app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://root:961110Lhw@localhost:3306/test'
#     db = SQLAlchemy(flask_app)  # 通过类`SQLAlchemy`来连接数据库
#
#
# def get_db():
#     return db
